package designPattern.prototype原型模式;

import java.util.Date;

public class Test {

    public static void main(String[] args) throws CloneNotSupportedException {

        Video v1 = new Video("java", new Date());
        System.out.println(v1);
        System.out.println(v1.hashCode());

        System.out.println("=====================");
        Video v2 = (Video) v1.clone();
        v1.setDate(new Date(123123));
        System.out.println(v1);
        System.out.println(v1.hashCode());
        System.out.println(v2);
        System.out.println(v2.hashCode());
    }
}
